package com.itcat.api;

import com.itcat.api.mysql.OmsOrderSettingApi;
import com.itcat.mapper.OmsOrderSettingMapper;
import com.itcat.mysql.pojo.OmsOrderSetting;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class OmsOrderSettingApiImpl implements OmsOrderSettingApi {


    @Autowired
    private OmsOrderSettingMapper omsOrderSettingMapper;

    /**
     * 查询订单设置
     *
     * @param id
     * @return
     */
    public OmsOrderSetting findSetting(Integer id) {
        OmsOrderSetting omsOrderSetting = omsOrderSettingMapper.selectById(id);
        return omsOrderSetting;


    }

    /**
     * 修改订单设置
     *
     * @param omsOrderSetting
     */
    public void updateSetting(OmsOrderSetting omsOrderSetting) {
        int update = omsOrderSettingMapper.updateById(omsOrderSetting);
    }
}
